home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8206 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: non-blocking I/O on X.25
  5. Date: Fri, 01 Mar 96 22:08:12 GMT
  6. Organization: none
  7. Message-ID: <825718092snz@genesis.demon.co.uk>
  8. References: <raffelmDnLwIH.67@netcom.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <raffelmDnLwIH.67@netcom.com> raffelm@netcom.com "Matt Raffel" writes:
  15.  
  16. >I have to write a program that will "put" and "get"
  17. >characters from X.25 connection.  (In X.25 stdin and
  18. >stdout are redirected to the tty emulation--so 
  19. >I can use printf, getchar, and fgetchar etc...)
  20.  
  21. What you are describing here are some of the features of a particular
  22. X.25 implementation - not properties of X.25 in general. The key word
  23. here is probably 'tty' which suggests that you may be using a Unix system.
  24.  
  25. >But, what I need to do is non-blocking.  I never 
  26. >have done non-blocking I/O.  I have looked at the
  27. >FAQ, but the one I had did not contain any examples.
  28.  
  29. The problem is that the C language has no support for non-blocking I/O; you
  30. have to use whatever support your particular OS provides. If you are using
  31. Unix TTYs then you use the Unix TTY control interface (termio/termios) to
  32. control them. However that is entirely Unix specific and the correct place
  33. to ask about it is in comp.unix.programmer.
  34.  
  35. -- 
  36. -----------------------------------------
  37. Lawrence Kirby | fred@genesis.demon.co.uk
  38. Wilts, England | 70734.126@compuserve.com
  39. -----------------------------------------
  40.